package com.team5101.mapper;

import com.team5101.base.IBaseDao;
import com.team5101.dto.ProductDTO;
import com.team5101.entity.TProduct;

import java.util.List;

public interface TProductMapper extends IBaseDao<TProduct> {
    int deleteByPrimaryKey(Long pId);

    int insert(TProduct record);

    int insertSelective(TProduct record);

    TProduct selectByPrimaryKey(Long pId);

    int updateByPrimaryKeySelective(TProduct record);

    int updateByPrimaryKey(TProduct record);

    List<TProduct> selectAllList();

    List<TProduct> selectByItem(ProductDTO productDTO);

    List<TProduct> selectSecond(ProductDTO productDTO);

    List<TProduct> selectFirst(ProductDTO productDTO);

}